<?php
namespace Admin\Model;
use Think\Model;

/**
 * Created by PhpStorm.
 * User: hjl
 * Date: 2016/9/7
 * Time: 11:55
 */
class SuspiciousModel extends Model{

    protected $_validate = array(
    );

    protected $_auto = array(
        array('bk_at', 'time', 1, 'function'),
        array('opt_at', 'time', 1, 'function'),
        array('opt_name', 'getName', 1, 'callback'),
    );

    protected function getName(){
        return $_SESSION["username"];
    }
}